package com.springboot.dubbo.service;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * Created by yangxiaodong on 2019/11/13.
 */
@Service
public class DubboConsumerService {

    @Reference(timeout = 2000,version = "1.0.0")//引用dubbo服务
     DubboProviderService dubboProviderService;


    public String  getTest() {
        String test = dubboProviderService.getTest();
        return test;
    }
}
